package org.grayrabbit.cloud.core.server;

import org.grayrabbit.cloud.core.biz.BizResult;
import org.grayrabbit.cloud.core.biz.BizServerModule;
import org.grayrabbit.cloud.core.rpc.Argument;
import org.grayrabbit.cloud.core.rpc.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class BizSimpleServerModule extends BizServerModule {
	private static final Logger logger = LoggerFactory.getLogger(BizSimpleServerModule.class);
	public Result handle(Argument argument) {
		try {
			return super.handle(argument);
		} catch (Exception e) {
			logger.error("服务处理异常：",e);
			return BizResult.create(e);
		}
	}


}
